package com.wwfish.cms.model.sysuser;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.wwfish.cms.model.BaseDto;
import com.wwfish.gwt.reflection.util.IFishDto;

import java.io.Serializable;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2010-8-18
 * Time: 10:51:37
 * To change this template use File | Settings | File Templates.
 */
public class AccessItemDto  implements Serializable, IsSerializable, IFishDto {
    //模型的id
    private Long id;
    private String parentId;
    private String name;
    //唯一标示，用于映射权限ID标示的
    private String code;
    private List<AccessItemDto> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<AccessItemDto> getChildren() {
        return children;
    }

    public void setChildren(List<AccessItemDto> children) {
        this.children = children;
    }
}
